<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../0_assets/js/mustache.min.js"></script>
    
</head>
<body>
    <div class="root">

    </div>
    <script>
        let root = document.querySelector('.root');
        let templateStr = '<h1>我今天去{{address}}玩了，十分{{mood}}</h1>';
        let data = {
            address:'苏州园林',
            mood:'开心'
        }
        root.innerHTML = mustache.render(templateStr,data);
    </script>
</body>
</html>